<?
include_once("codelibrary/inc/variables.php");
include_once("codelibrary/inc/functions.php");

				$hflds="";

				if (!empty($HTTP_POST_VARS)) 
				{
					reset($HTTP_POST_VARS);
					while (list($k,$v)=each($HTTP_POST_VARS)) 
					{
					${$k}=$v;
					$hflds .= "<input type=hidden name='".$k."' value='".$v."'>";
					}	
					$hflds .= "<input type=hidden name=msg value='Deleted'>";
					echo "<form name=f1 action='customer-status-type-view-details.php' method=post>";
					echo $hflds."</form>";
				}
        $chose=count($checkbox); 
		for($i=0;$i<count($checkbox);$i++)
		{
		   
		    mysql_query("delete from $customer_status_type_table where cst_id='$checkbox[$i]' ");
		} 
		 $nrecords=$totalNoOfRecords-($limit*$pageno);
		 if($chose==$nrecords)
		 {
			?>
		       <script>location="customer-status-type-view-details.php";</script>
       <?
		}
		else
		{
		  print "<script>document.f1.submit()</script>";
	    }
		die();
			
?>